package com.hustmm.service.impl;

import com.hustmed.domain.Experiment;
import com.hustmed.domain.HardestSample;
import com.hustmed.mapper.StatisticsMapper;
import com.hustmed.service.IStatisticsService;
import com.hustmm.domain.MmMaterial;
import com.hustmm.mapper.HustMMStatisticsMapper;
import com.hustmm.service.IHustMMStatisticsService;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.system.service.ISysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 材料数据Service业务层处理
 *
 */
@Service
public class HustMMStatisticsServiceImpl implements IHustMMStatisticsService
{
    @Autowired
    private HustMMStatisticsMapper statisticsMapper;

    @Autowired
    private ISysDictTypeService dictTypeService;

    @Override
    public int personcount()
    {
        return statisticsMapper.personcount();
    }

    @Override
    public int matcount() {
        return statisticsMapper.matcount();
    }

    @Override
    public int processcount() {
        return statisticsMapper.processcount();
    }

    @Override
    public int expcount() {
        return statisticsMapper.expcount();
    }

    @Override
    public int samplecount() {
        return statisticsMapper.samplecount();
    }

    @Override
    public List<MmMaterial> newMaterialList() {
        List<MmMaterial> tempList = statisticsMapper.hardestsamplelist();
        return tempList;
    }


}
